package com.demandbreakdown.xiyun.model.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

/**
 * 用户信息更新DTO
 *
 * @author poxz
 */
@Data
@Schema(description = "用户信息更新DTO")
public class UserUpdateDTO {

    @Schema(description = "用户昵称", example = "Alice")
    @Size(min = 2, max = 20, message = "用户昵称长度必须在2-20个字符之间")
    private String userName;

    @Schema(description = "用户简介", example = "个人简介")
    @Size(max = 200, message = "用户简介长度不能超过200个字符")
    private String userProfile;

    @Schema(description = "用户头像URL", example = "https://oss/xxx.jpg")
    @URL(message = "头像URL格式不正确")
    @Size(max = 512, message = "头像URL长度不能超过512个字符")
    private String userAvatar;
}
